package com.newcoin.chat.beans.vo;

public class Message {
    private Long fromUser;//发送者
    private String fromUserHeadImgPath;//发送者头像
    private String fromUserNickname;//发送者昵称
    private Long toUser;//发给谁  单聊不能为空 群聊可以为空
    private Long groupId;//群组id  单聊为空
    private String groupName;//群名称
    private String groupHeadImgPath;//群头像
    private String msgType;//单聊/群聊/单聊系统消息/群聊系统消息/添加好友消息/邀请群消息 friend/group/sys_friend/sys_group/addFriend/addGroup
    private String type;//消息  text文本 img图片 voice语音
    private Integer state;//阅后即焚的状态 0本条消息不开启阅后即焚
    private String content;//文本消息内容 图片语音填写path


    public Long getFromUser() {
        return fromUser;
    }

    public void setFromUser(Long fromUser) {
        this.fromUser = fromUser;
    }

    public String getFromUserHeadImgPath() {
        return fromUserHeadImgPath;
    }

    public void setFromUserHeadImgPath(String fromUserHeadImgPath) {
        this.fromUserHeadImgPath = fromUserHeadImgPath;
    }

    public String getFromUserNickname() {
        return fromUserNickname;
    }

    public void setFromUserNickname(String fromUserNickname) {
        this.fromUserNickname = fromUserNickname;
    }

    public Long getToUser() {
        return toUser;
    }

    public void setToUser(Long toUser) {
        this.toUser = toUser;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getGroupHeadImgPath() {
        return groupHeadImgPath;
    }

    public void setGroupHeadImgPath(String groupHeadImgPath) {
        this.groupHeadImgPath = groupHeadImgPath;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

//    @Override
//    public String toString() {
//        return '{' +
//                "\'fromUser\':" + fromUser +
//                ", \'fromUserHeadImgPath\':'" + fromUserHeadImgPath + '\'' +
//                ", \'fromUserNickname\':'" + fromUserNickname + '\'' +
//                ", \'toUser\':" + toUser +
//                ", \'groupId\':" + groupId +
//                ", \'groupName\':'" + groupName + '\'' +
//                ", \'groupHeadImgPath\':'" + groupHeadImgPath + '\'' +
//                ", \'msgType\':'" + msgType + '\'' +
//                ", \'type\':'" + type + '\'' +
//                ", \'state\':" + state +
//                ", \'content\':'" + content + '\'' +
//                '}';
//    }

    @Override
    public String toString() {
        return "{" +
                "\'fromUser\':" + fromUser +
                ", \'fromUserHeadImgPath\':\'" + fromUserHeadImgPath + "\'" +
                ", \'fromUserNickname\':\'" + fromUserNickname + "\'" +
                ", \'toUser\':" + toUser +
                ", \'groupId\':" + groupId +
                ", \'groupName\':\'" + groupName + "\'" +
                ", \'groupHeadImgPath\':\'" + groupHeadImgPath + "\'" +
                ", \'msgType\':\'" + msgType + "\'" +
                ", \'type\':\'" + type + "\'" +
                ", \'state\':" + state +
                ", \'content\':\'" + content + "\'" +
                "}";
    }
}
